package com.wiegand.content.background {
	import flash.display.Sprite;
	import flash.geom.Rectangle;

	/**
	 * @author gandy
	 */
	public class LinesManager extends Sprite {

		private var _lines : Array;
		private var _wall : Sprite;
		private var _floor : Sprite;

		public function LinesManager(wall:Sprite,floor:Sprite){
			_wall=wall;
			_floor=floor;
			_lines = new Array();
		}
		
		public function createLines(xml:XMLList):void{
			clear();
			for(var i:int=0;i<xml.wall.children().length();i++){
				var wLine : Line = new Line(xml.wall.child(i));
				_wall.addChild(wLine);
				_lines.push(wLine);
			}
			for(var j:int=0;j<xml.floor.children().length();j++){
				var fLine : Line = new Line(xml.floor.child(j));
				_floor.addChild(fLine);
				_lines.push(fLine);
			}
		}
		
		private function clear():void{
		
		}
		
	}
}
